<template>
    <div>
        <h1>登录</h1>
        <button @click="login">登录</button>
    </div>
</template>

<script setup>
function login() {
  localStorage.setItem("token", "123");
}
</script>